/*
 * @Author: zhang gen yuan
 * @Date: 2021-09-16 17:08:16
 * @Descripttion: 
 */
import { createApp } from 'vue'
// import Cookies from 'js-cookie'
import 'normalize.css/normalize.css'
// import './assets/iconfonts/iconfont.css'
// import '@/assets/fonts/fonts.css'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

import './styles/element-variables.scss'
import "element-plus/packages/theme-chalk/src/base.scss";
// import 'element-plus/lib/theme-chalk/index.css'

import './styles/index.scss'
import "./assets/iconfont/iconfont.js";
import "./assets/iconfont/iconfont.css";

import "v-contextmenu/dist/themes/default.css";

import App from './App.vue'
import router from "./router/index";
import store from "./store/index";

import { useSvgIcon } from "./icons";
import './permission'
import directives from './directive/index'
// import ElementLocale from "element-plus/lib/locale";
// import zhLocale from "element-plus/lib/locale/lang/zh-cn";
// ElementLocale.use(zhLocale);

const app = createApp(App);
useSvgIcon(app)
import 'driver.js/dist/driver.min.css'
const getServerConfig = async () => {
  app
    .use(router)
    .use(store)
    .use(ElementPlus, { locale: zhCn, size: 'small' })

  await router.isReady();
  app.mount('#root', false)
}
getServerConfig()
